Skip to content

ci - poc to use ddci on-demand for end-to-end test in feature branch - #54946

Draft
NielkSalocin wants to merge 1 commit into
mainfrom
nklein/test-dynamicbuild-ddci-ondemand
Draft

ci - poc to use ddci on-demand for end-to-end test in feature branch#54946
NielkSalocin wants to merge 1 commit into
mainfrom
nklein/test-dynamicbuild-ddci-ondemand

Conversation

@NielkSalocin

Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Describe how you validated your changes

Additional Notes

@github-actions

Copy link
Copy Markdown
Contributor

@codex review

@dd-octo-sts dd-octo-sts Bot added internal Identify a non-fork PR team/agent-devx labels Aug 17, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label Aug 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40acef6b29

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1,8 @@
trigger:
stage: .pre
include: .gitlab-ci.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Nest the downstream trigger configuration

GitLab treats the top-level trigger as the job name, so include is currently parsed as an unsupported job keyword and every on-demand invocation fails CI configuration validation before any E2E test starts. Nest include under a second trigger: key, following the working child-pipeline shape in .gitlab/deploy/trigger_distribution.yml:8-12.

Useful? React with 👍 / 👎.

@@ -0,0 +1,8 @@
trigger:
stage: .pre
include: .gitlab-ci.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate downstream E2E failures

After nesting this as a valid downstream trigger, omitting strategy: depend or strategy: mirror makes the on-demand job succeed as soon as the child pipeline is created, so DDCI can report a green result while the requested E2E suite later fails. Add a waiting strategy to the nested trigger; the repository documents this exact default behavior in .gitlab/test/functional_test/regression_detector.yml:216-220 and uses strategy: depend where the parent must reflect the child result.

Useful? React with 👍 / 👎.

@dd-octo-sts

dd-octo-sts Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor fec92d8c:

Results for datadog-agent_7.84.0~devel.git.219.60c6d093.pipeline.131311266-1_amd64.deb:

No change detected

Results for datadog-iot-agent_7.84.0~devel.git.219.60c6d093.pipeline.131311266-1_amd64.deb:

No change detected

@NielkSalocin

Copy link
Copy Markdown
Contributor Author

/gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Aug 17, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-08-17 08:59:06 UTC ℹ️ Start processing command /gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end


2026-08-17 09:00:23 UTC ℹ️ Gitlab pipeline started

Started pipeline #131276560

@NielkSalocin
NielkSalocin force-pushed the nklein/test-dynamicbuild-ddci-ondemand branch from 40acef6 to c97cde2 Compare August 17, 2026 11:42
@NielkSalocin

Copy link
Copy Markdown
Contributor Author

/gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end

@gh-worker-devflow-routing-ef8351

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-08-17 11:51:15 UTC ℹ️ Start processing command /gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end
If you need support, contact us on Slack #ci-infra-support!


2026-08-17 11:51:39 UTC ℹ️ Branch synced on Gitlab

Branch nklein/test-dynamicbuild-ddci-ondemand was out-of-sync on Gitlab - it has been resynced

If you need support, contact us on Slack #ci-infra-support!


2026-08-17 11:53:39 UTC 🚨 Devflow

POST https://gitlab.ddbuild.io/api/v4/projects/DataDog/datadog-agent/pipeline: 400 {message: {base: [dynamic-build-run job: chosen stage build does not exist; available stages are .pre, setup, maintenance_jobs, deps_build, deps_fetch, lint, source_test, source_test_stats, software_composition_analysis, binary_build, package_deps_build, kernel_matrix_testing_prepare, kernel_matrix_testing_system_probe, kernel_matrix_testing_security_agent, kernel_matrix_testing_cleanup, integration_test, benchmarks, package_build, packaging, pkg_metrics, container_build, container_scan, scan, check_deploy, dev_container_deploy, deploy_packages, choco_build, install_script_deploy, internal_image_deploy, e2e_deploy, install_script_testing, e2e_pre_test, e2e_init, e2e, e2e_k8s, e2e_install_packages, functional_test, trigger_distribution, dynamic_test, junit_upload, internal_kubernetes_deploy, check_merge, .post]}}

Details
child workflow execution error (type: devtools.Devtools_TriggerCiFromPr, workflowID: 6201a486-b3dc-4536-9a0c-6af5deaecb6b_38, runID: 01a00f8f-c6f1-7d6c-91e8-e1bb19b47a3d, initiatedEventID: 38, startedEventID: 39): child workflow execution error (type: devtools.Devtools_TriggerCi, workflowID: 01a00f8f-c6f1-7d6c-91e8-e1bb19b47a3d_14, runID: 01a00f8f-cb2a-7da8-bee1-252e0aa56d90, initiatedEventID: 14, startedEventID: 15): activity error (type: gitlab.GitlabService_CreatePipeline, scheduledEventID: 55, startedEventID: 56, identity: ): activity ScheduleToClose timeout (type: ScheduleToClose): POST https://gitlab.ddbuild.io/api/v4/projects/DataDog/datadog-agent/pipeline: 400 {message: {base: [dynamic-build-run job: chosen stage build does not exist; available stages are .pre, setup, maintenance_jobs, deps_build, deps_fetch, lint, source_test, source_test_stats, software_composition_analysis, binary_build, package_deps_build, kernel_matrix_testing_prepare, kernel_matrix_testing_system_probe, kernel_matrix_testing_security_agent, kernel_matrix_testing_cleanup, integration_test, benchmarks, package_build, packaging, pkg_metrics, container_build, container_scan, scan, check_deploy, dev_container_deploy, deploy_packages, choco_build, install_script_deploy, internal_image_deploy, e2e_deploy, install_script_testing, e2e_pre_test, e2e_init, e2e, e2e_k8s, e2e_install_packages, functional_test, trigger_distribution, dynamic_test, junit_upload, internal_kubernetes_deploy, check_merge, .post]}} (type: ErrorResponse, retryable: true)

If you need support, contact us on Slack #ci-infra-support with those details!

@NielkSalocin
NielkSalocin force-pushed the nklein/test-dynamicbuild-ddci-ondemand branch from c97cde2 to 60c6d09 Compare August 17, 2026 11:56
@NielkSalocin

Copy link
Copy Markdown
Contributor Author

/gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Aug 17, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-08-17 11:57:14 UTC ℹ️ Start processing command /gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end


2026-08-17 11:57:39 UTC ℹ️ Branch synced on Gitlab

Branch nklein/test-dynamicbuild-ddci-ondemand was out-of-sync on Gitlab - it has been resynced


2026-08-17 11:59:08 UTC ℹ️ Gitlab pipeline started

Started pipeline #131311233

@gh-worker-devflow-routing-ef8351

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-08-17 11:59:09 UTC ℹ️ Devflow: /gitlab trigger-ci -v DYNAMIC_BUILD_RENDER_RULES=end-to-end

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 52.43% (+0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 60c6d09 | Docs | Datadog PR Page | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes:datadog-agent-ci internal Identify a non-fork PR short review PR is simple enough to be reviewed quickly team/agent-devx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant